package cn.com.activiti.model.sys.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangjun
 * @since 2018-08-16
 */
@TableName("a_employee")
public class AEmployee extends Model<AEmployee> {

    private static final long serialVersionUID = 1L;
	@TableId(type = IdType.ID_WORKER_STR)
    private String id;
    private String name;
    private String password;
    private String email;
    private String role;
    @TableField("manager_id")
    private String managerId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AEmployee{" +
        ", id=" + id +
        ", name=" + name +
        ", password=" + password +
        ", email=" + email +
        ", role=" + role +
        ", managerId=" + managerId +
        "}";
    }
}
